
# 基础镜像
FROM java17
# 维护者
MAINTAINER mf
# 设置工作目录
WORKDIR /usr/local/java
# 同步docker内部时间
RUN ln -snf /user/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# 设置时区
ENV TZ=Asia/Shanghai
EXPOSE 8080
#复制jar包到 /user/local/javax下
ARG JAR_FILE
ADD ${JAR_FILE} ./clock-in.jar

# 运行命令
#ENTRYPOINT ["java","-Dspring.profiles.active=pro", "-server", "-Xms512m", "-Xmx512m", "-jar", "/usr/local/java/bili.jar"]
ENTRYPOINT ["java","-Dspring.profiles.active=pro", "-jar", "/usr/local/java/bili.jar"]

